package cc.higou.service;

import java.util.Date;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import cc.higou.core.pojo.TestTb;

/**
 * 测试添加用户的service
 * 
 * @author Lenovo
 *
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:applicationContext.xml" })
public class TestTestTbService {
	
	@Autowired
	private TestTbService tbService;
	
	@Test
	public void testAdd(){
		TestTb testTb = new TestTb();
		testTb.setName("VN1");
		testTb.setBirthday(new Date());
		tbService.add(testTb);
	}
}
